package com.hellomeng.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBean2 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Bean2 bean2 = (Bean2)applicationContext.getBean("bean2");
       // Bean2 beans = (Bean2)applicationContext.getBean("beans");
    }
}
//输出：
//Bean2Factory的方法已经执行了...
